package com.cuixichang.minimalism.domain;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cuixichang.minimalism.core.security.userdetails.CredentialDetail;
import com.cuixichang.minimalism.transfer.dto.IRouterDTO;
import com.cuixichang.minimalism.transfer.po.IRouter;

public interface IRouterCommandService {
    Page<IRouterDTO> selectPageByConditional(IRouterDTO dto, Long pageNo, Long pageSize, CredentialDetail credential);
    boolean deleteByIdHasPreCheck(Long id, String systemCode, CredentialDetail credentialDetail);
    IRouterDTO selectByIdHasPreCheck(Long id, String systemCode, CredentialDetail credentialDetail);
    IRouterDTO insert(IRouterDTO roleDTO, CredentialDetail credentialDetail);
    boolean updateByIdHasPreCheck(IRouterDTO dto, CredentialDetail credential);
    boolean allowUseRouter(String routerUrl,String requestType,String systemCode, Long matchRouterId);
}
